package cn.pomelo.signal.service;

import cn.pomelo.signal.model.Trade;
import cn.pomelo.signal.model.TradeVo;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.concurrent.CountDownLatch;

public interface TradeService {
    void getAllData() throws IOException;

    void readData() throws IOException;

    void executeAsync(List<Trade> list, CountDownLatch countDownLatch);

    int insert(Trade record);

    int insertSelective(Trade record);

    List<Trade> findAllByDateAndCode(String d1, String d2, String code);

    List<Trade> findAllTrades();

    List<TradeVo> getRiseTrade(String date) throws ParseException;

    int batchInsert(List<Trade> trades);
}


